package prueba1;

import java.awt.Container;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

public class BufferedImageMouseDrag extends JFrame {
  /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
DisplayCanvas canvas;

  public BufferedImageMouseDrag() {
    super();
    Container container = getContentPane();

    canvas = new DisplayCanvas();
    container.add(canvas);

    addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
      }
    });
    setSize(450, 400);
    setVisible(true);
  }

  public static void main(String arg[]) {
    new BufferedImageMouseDrag();
  }
}

